import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import assetsView from '../views/assetsView.vue'
import assetsChildren from '../views/assetsChildren.vue'
import assetsCollection from '../views/assetsCollection.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/assets',
    name: 'assets',
    component: assetsView,
  },
  {
    path: '/info',
    name: 'info',
    component: assetsChildren,
  },
  {
    path: '/collect',
    name: 'collect',
    component: assetsCollection,
  },
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
